package com.bt.lms.ui.action.teaching.plan;


import com.bt.lms.ui.page.common.action.pageteaching.TeachingPlanLabAction;
import com.bt.lms.ui.page.teaching.plan.PageSetTeachingPlanBasicInfo;
import com.bt.lms.ui.page.teaching.plan.PageTeachingPlanBasicInfoList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;

/**
 * 教学计划
 * 新增教学计划按钮事件
 */
public class LAddTeachingPlanButtonAction implements EventHandler {

    /**
     * 教学计划界面
     */
    private PageTeachingPlanBasicInfoList pageTeachingPlanBasicInfo;

    public LAddTeachingPlanButtonAction(PageTeachingPlanBasicInfoList pageTeachingPlanBasicInfo) {
        this.pageTeachingPlanBasicInfo = pageTeachingPlanBasicInfo;
    }

    @Override
    public void handle(Event event) {

        //要秀的界面
        PageSetTeachingPlanBasicInfo pageSetTeachingPlanBasicInfo = new PageSetTeachingPlanBasicInfo();
        Pane pane = TeachingPlanLabAction.pageSkipInfo.getPane();
        Integer index = TeachingPlanLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index,pageSetTeachingPlanBasicInfo);



    }
}
